/*
 * @Author       : Thyssen Wen
 * @Date         : 2022-09-14 12:56:32
 * @LastEditors  : Thyssen Wen
 * @LastEditTime : 2022-09-14 13:14:27
 * @Description  : Banner class
 * @FilePath     : /cdesign-pattern/Adapter/Banner.h
 */
#pragma once
#include <string>
#include <iostream>

using namespace std;
class Banner
{
private:
    string String;
public:
    Banner(string String);
    ~Banner();
    
    void showWithParen();
    void showWithAster();
};

Banner::Banner(string String)
{
    this->String = String;
}

Banner::~Banner()
{
}

void Banner::showWithParen()
{
    cout << "(" + String + ")" << endl;
}

void Banner::showWithAster()
{
    cout << "*" + String + "*" << endl;
}